package com.lhf.userservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lhf.userservice.entity.FvsSysUser;
import com.lhf.userservice.vo.FvsSysAddRoleForUserVo;
import com.lhf.userserviceapi.dto.FvsSysUserDTO;

import java.util.List;

/**
 * (FvsSysUser)表服务接口
 *
 * @author liuhf
 * @since 2021-03-29 16:01:44
 */
public interface FvsSysUserService extends IService<FvsSysUser> {

    /**
     * 给用户添加角色
     *
     * @param uid
     * @param rids
     * @return
     */
    Boolean addRoleByUid(Long uid, List<Long> rids);

    /**
     * 删除用户角色
     *
     * @param vo
     * @return
     */
    Boolean delRoleByUid(FvsSysAddRoleForUserVo vo);

//    /**
//     * 根据用户名查询用户信息
//     *
//     * @param username
//     * @return
//     */
//    FvsSysUserDTO findUserByUsername(String username);
}
